module.exports = {
  base: '/ocean/',
  title: 'Ocean',
  head: [['link', { rel: 'icon', href: '/o-logo.png' }]],
  plugins: [
    'demo-container',
    '@vuepress-reco/extract-code',
    // [
    //   'vuepress-plugin-comment',
    //   {
    //     choosen: 'valine',
    //     // options选项中的所有参数，会传给Valine的配置
    //     options: {
    //       el: '#valine-vuepress-comment',
    //       appId: 'SFutH4Id7Ll4eerGweqqoKYH-gzGzoHsz',
    //       appKey: 'VFFAQ0mB0iHb7WvE2nFJHM2P',
    //       path: '<%- frontmatter.commentid || frontmatter.permalink %>',
    //     },
    //   },
    // ],
  ],
  themeConfig: {
    logo: '/o-logo.png',
    lastUpdated: 'Last Updated',
    nav: [
      {
        text: '首页',
        link: '/',
      },
      {
        text: '组件',
        ariaLabel: '组件',
        items: [
          { text: 'Oce组件', link: '/components/ocean/Toolbar' },
          { text: 'Xny组件', link: '/components/xy/SplitPane' },
          { text: '更新日志', link: '/components/ChangeLog' },
          // { text: 'Oce组件', link: '/doc/module.md' },
          // { text: 'Xny组件', link: '/doc/XnyModule.md' },
          // { text: '工具类', link: '/prepare.md' },
        ],
      },
      {
        text: '文档',
        ariaLabel: '文档',
        items: [
          { text: '提交规范', link: '/standard/commitNorme.md' },
          { text: 'avue升级注意事项', link: '/standard/avue.md' },
          { text: 'eslint自动格式化说明', link: '/standard/eslint.md' },
          { text: 'App开发说明', link: '/standard/appDevelop.md' },
          // { text: '依赖文档', link: '/prepare.md' },
          // { text: 'vsCode配置', link: '/prepare.md' },
          // { text: 'icon管理', link: '/prepare.md' },
        ],
      },
    ],
    sidebar: {
      '/standard': [
        '/standard/commitNorme',
        '/standard/avue',
        '/standard/eslint',
        '/standard/appDevelop',
      ],
      '/components/ocean': [
        '/components/ocean/Toolbar',
        '/components/ocean/Search',
        '/components/ocean/BigTable',
        '/components/ocean/Pagination',
      ],
      '/components/xy': [
        '/components/xy/SplitPane',
        {
          title: '通用表格 General',
          collapsable: false,
          children: [
            {
              title: '综合案例及说明',
              path: '/components/xy/general/doc',
            },
          ],
        },
      ],
    },
  },
  chainWebpack: (config) => {
    config.globalObject = 'this'
  },
}
